package com.bookcycle.panda.webfront.vo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class Order {
    //下单信息

    private String orderId; //订单编号：uuid

    String payment; //支付总额 目前只有房费，之后待扩展

//    private String deposit; //押金
//    private Integer depositMethod; //押金方式 ：1.线上 2.线下


    //如果去掉此行则报错"status": 500,"error": "Internal Server Error",
    // "message": "For input string: \"1993-04-13 15:20\"",
    @JSONField(format = "yyyy-MM-dd HH:mm")
    private String createTime; //创建时间(付订金成功创建)

    //房源信息
    private HouseInfo houseInfo;

    private BookerInfo bookerInfo;
    
    //预订信息
    private BookInfo bookInfo;

    //入住人信息
    private OccupantInfo occupantInfo;

    private Integer paymentType; //支付类型， 1.微信支付 2.支付宝支付 3.银行卡
    public OccupantInfo getOccupantInfo() {
        return occupantInfo;
    }

    public void setOccupantInfo(OccupantInfo occupantInfo) {
        this.occupantInfo = occupantInfo;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public HouseInfo getHouseInfo() {
        return houseInfo;
    }

    public void setHouseInfo(HouseInfo houseInfo) {
        this.houseInfo = houseInfo;
    }

    public BookInfo getBookInfo() {
        return bookInfo;
    }

    public void setBookInfo(BookInfo bookInfo) {
        this.bookInfo = bookInfo;
    }

    public Integer getPaymentType() {
        return paymentType;
    }

    public void setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    private Integer orderStatus; //订单状态 1.待付款 2.已付款 3.待入住 4.房客取消未付款 5.已完成入住 6.支付超时已取消
    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public BookerInfo getBookerInfo() {
        return bookerInfo;
    }

    public void setBookerInfo(BookerInfo bookerInfo) {
        this.bookerInfo = bookerInfo;
    }


    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
